package practice1;

public class Message {
	private Long id;
	private String text;
	private Message oriMessage;

	Message() {
	}

	public Message(String text) {
		this.text = text;
	}

	public Long getId() {
		return id;
	}

	private void setId(Long id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Message getOriMessage() {
		return oriMessage;
	}

	public void setOriMessage(Message nextMessage) {
		this.oriMessage = nextMessage;
	}
}
